<?php
class JointPoint{
    private ReflectionMethod $method;
    private array $argc;
    private $instance;
    public function __construct($instance,ReflectionMethod $method,array $argc)
    {
        $this->argc = $argc;
        $this->instance = $instance;
        $this->method = $method;
    }

    public function getArgc():array{
        return $this->argc;
    }

    public function exec(){
        return $this->method->invoke($this->instance, ...$this->argc);
    }
}